﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Ext.Net;
using Viewer.BusinessObject.BusinessEntities;

namespace Viewer.PhanQuyen.UserControls
{
    public partial class QUNguoiDung : System.Web.UI.UserControl
    {
        public void ShowDialog()
        {
            this.wdQUNguoiDung.Show();
        }
        [DirectMethod]
        public void ReloadData()
        {
            BindData();
        }
        public void BindData()
        {
            this.storeNguoiDung.DataSource = (new BusinessObject.BusinessEntities.QUNguoiDung()).LoadData();
            this.storeNguoiDung.DataBind();
            this.PagingToolbar1.PageSize = 10;
            Ext.Net.X.AddScript("SynDataBetween2Store();");
        }
    }
}